--
-- Author: shunguo.chen
-- Date: 2016-06-17 11:42:06
--
-- ModelBase
--

local fileName = string.getModeName(...)
local ModelBase = class(fileName)

ModelBase._data = nil

function ModelBase:ctor(data)
	self:setData(data)
end

function ModelBase:setData(data)
	self._data = data
	self:init()
end

function ModelBase:init()
	
end

function ModelBase:sendMsg()

end

function ModelBase:notify(...)
	EM:notify(...)
end

function ModelBase:getModelName()
	return self.__cname
end

return ModelBase

